<template>
  <div class="layout">
    <van-tabbar v-model="active" route>
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/find">找房</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/news">咨询</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/my">我的                                                                                                                                   </van-tabbar-item>
    </van-tabbar>
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'layout-page',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style scoped>
</style>
